


###########  DATA TYPES ###########

#define PSQL_DTYPE_INT        0
#define PSQL_DTYPE_CHAR       1
#define PSQL_DTYPE_FLOAT      2
#define PSQL_DTYPE_DOUBLE     3
#define PSQL_DTYPE_BOOLEAN    4
#define PSQL_DTYPE_DATE       5
#define PSQL_DTYPE_TIME       6
#define PSQL_DTYPE_DATETIME   7
#define PSQL_DTYPE_TIMESTAMP  8



#######  DATA TYPES LIMITS ########

#define PSQL_DTYPE_CHAR_MAX_LENGHT 255


typedef struct{

    unsigned char id;
    char name[16];
    unsigned char type;
    int length;
    bool primary_key;
    bool null;
    bool unique;
    bool auto_increment;

} pField;
